package com.pxst.merchant.req;

import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @Author: @Ryan
 * @Description:
 * @CreateTime: 2023-09-15 09:18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WhiteListReq {

    @ApiModelProperty("商户id列表")
    private List<Long> merchantIdList;

    @ApiModelProperty("币种")
    private String currency;

    @ApiModelProperty("类型列表")
    private List<Integer> typeList;

    @ApiModelProperty("ip地址")
    private String ip;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("时间段开始")
    private Date startDate;

    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("时间段结束")
    private Date endDate;

    @ApiModelProperty(value = "页面大小",required = true)
    @NotNull(message = "页面大小不能为空")
    private Integer rp;

    @NotNull(message = "页码不能为空")
    @ApiModelProperty(value = "页码",required = true)
    private Integer page;
}
